package org.xlp.db.xml.ele;

import java.util.Objects;

/**
 * sqls中com对象
 * 
 * @author 徐龙平
 * 
 * @version 1.0	
 */
public class ComEle {
	//com id
	private String id;
	//com 的content
	private String content;

	/**
	 * 父ID
	 */
	private String parentId;
	
	public ComEle(){}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	@Override
	public String toString() {
		return "ComEle{" +
				"id='" + id + '\'' +
				", content='" + content + '\'' +
				", parentId='" + parentId + '\'' +
				'}';
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;
		ComEle comEle = (ComEle) o;
		return Objects.equals(id, comEle.id)
				&& Objects.equals(parentId, comEle.parentId);
	}

	@Override
	public int hashCode() {
		return Objects.hash(id, parentId);
	}
}
